import request from '@/utils/request'

// 查询留级学生列表
export function listRepeater(query) {
  return request({
    url: '/education/repeater/list',
    method: 'get',
    params: query
  })
}

// 查询留级学生详细
export function getRepeater(id) {
  return request({
    url: '/education/repeater/' + id,
    method: 'get'
  })
}

// 新增留级学生
export function addRepeater(data) {
  return request({
    url: '/education/repeater',
    method: 'post',
    data: data
  })
}

// 修改留级学生
export function updateRepeater(data) {
  return request({
    url: '/education/repeater',
    method: 'put',
    data: data
  })
}

// 删除留级学生
export function delRepeater(id) {
  return request({
    url: '/education/repeater/' + id,
    method: 'delete'
  })
}
